import {
  Axios
} from 'assets/js/requester/requester'
import { formatPath } from 'src/config/env'
// 获取斑马历史数据
export const getHistoryData = () => Axios({
  method: 'get',
  url: formatPath('report/querySecondDataOne')
})

// 当天注册登陆今日注销人数数据
export const getToadyUserData = () => Axios({
  method: 'get',
  url: formatPath('report/queryFirstData')
})
// 用户活跃数据及复购饼图
export const getUserActive = () => Axios({
  method: 'get',
  url: formatPath('report/queryFirstTuActiveUserData')
})
// 订单交易笔数
export const getOrderNum = () => Axios({
  method: 'get',
  url: formatPath('report/queryFirstTuOrderNumberData')
})

// 用户增减数据
export const getUserDeIn = () => Axios({
  method: 'get',
  url: formatPath('report/queryFirstTuIncDecNumber')
})
// 订单交易金额
export const getOrderPrice = () => Axios({
  method: 'get',
  url: formatPath('report/queryFirstTuOrderPriceData')
})
// 当日饼图
export const getToadyPie = () => Axios({
  method: 'get',
  url: formatPath('report/querySecondDataTwo')
})
